import component.Zh0202GrowUp;
import component.Zh0202Man;
import decorate.*;


/**
 * @author: zh
 * @date: 2021/11/18 11:30
 * @version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        Zh0202GrowUp growUp;
        growUp=new Zh0202Man();
        growUp.confidenceMan();
        System.out.println("-----------------------");
        Zh0202MoneyMan moneyMan = new Zh0202MoneyMan(growUp);
        Zh0202CarMan carMan = new Zh0202CarMan(moneyMan);
        Zh0202HouseMan houseMan = new Zh0202HouseMan(carMan);
        Zh0202GoodMan goodMan = new Zh0202GoodMan(houseMan);
        System.out.println(goodMan.confidenceMan());
    }
}
